<!DOCTYPE html>
<html lang="zh-cn">
<head>
	<meta charset="utf-8">
	<title>应用圈远程安装</title>
</head>
<body>
<script type="text/javascript">
        //平台、设备和操作系统

        var system = {
            win: false,
            mac: false,
            x11: false,
            ipad:false
        };
        //检测平台
        var p = navigator.platform;
        var sUserAgent = navigator.userAgent.toLowerCase();
        var bIsAndroid = sUserAgent.match(/android/i) == "android";
        system.win = p.indexOf("Win") == 0;
        system.mac = p.indexOf("Mac") == 0;
        system.x11 = (p == "X11") || (p.indexOf("Linux") == 0);
        system.ipad = (navigator.userAgent.match(/iPad/i) != null)?true:false;
        //跳转语句，如果是手机访问就自动跳转到wap.baidu.com页面
        if (system.win || system.mac || system.x11||system.ipad) {

 			if(system.x11 && bIsAndroid) {
 				 window.location.href = "mobile.html";
 			} else {
 				 window.location.href = "pc.html";
 			}
        } else {
            window.location.href = "mobile.html";
        }
</script>

</body>
</html>